package com.foreveross.pojo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import com.foreveross.URL;
/**
 * 
 * @author 
 *
 */
public class CubeContent implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1698650844370589053L;

	private String name = null;

	private String releaseNote = null;

	private String icon = null;

	private String bundle = null;

	private String platform = null;

	private String version = null;

	private int build = 0;

	private String identifier = null;
	
	// 已安装的模块
	private Set<CubeModule> modules = new HashSet<CubeModule>();
	// 模块可升级时，旧版本和新版本的容器
	private Map<String, CubeModule> oldUpdateModules = new HashMap<String, CubeModule>();
	private Map<String, CubeModule> newUpdateModules = new HashMap<String, CubeModule>();

	private String appKey = "";


	public CubeContent() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getReleaseNote() {
		return releaseNote;
	}

	public void setReleaseNote(String releaseNote) {
		this.releaseNote = releaseNote;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Set<CubeModule> getModules() {
		return modules;
	}

	public void setModules(Set<CubeModule> modules) {
		this.modules = modules;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public int getBuild() {
		return build;
	}

	public void setBuild(int build) {
		this.build = build;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getBundle() {
		return bundle;
	}

	public void setBundle(String bundle) {
		this.bundle = bundle;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getPackageName() {
		return URL.APP_PACKAGENAME;
	}

	public String getVersionName() {
		return URL.APP_VERSION;
	}

	public int getVersionCode() {
		return URL.APP_BUILD;
	}

	public Map<String, CubeModule> getOldUpdateModules() {
		return oldUpdateModules;
	}

	public void setOldUpdateModules(Map<String, CubeModule> oldUpdateModules) {
		this.oldUpdateModules = oldUpdateModules;
	}

	public Map<String, CubeModule> getNewUpdateModules() {
		return newUpdateModules;
	}

	public void setNewUpdateModules(Map<String, CubeModule> newUpdateModules) {
		this.newUpdateModules = newUpdateModules;
	}

	public String getAppKey() {
		return URL.APPKEY;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

}
